From 1d006eb7dc17bf0ce221ef972e21ebb1a0e2a6dc Mon Sep 17 00:00:00 2001 From: Roger Pau Monne Date: Tue, 26 Apr 2016 12:07:50 +0200 Subject: [PATCH] libxl: fix shutdown_reason type in list_domains MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It should be an enum, not an unsigned. Signed-off-by: Roger Pau Monné Acked-by: Wei Liu Reviewed-by: Doug Goldstein Release-acked-by: Wei Liu --- tools/libxl/xl_cmdimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 63460175f0..8ff54e1d99 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -4254,7 +4254,7 @@ static void list_domains(bool verbose, bool context, bool claim, bool numa, printf("\n"); for (i = 0; i < nb_domain; i++) { char *domname; - unsigned shutdown_reason; + libxl_shutdown_reason shutdown_reason; domname = libxl_domid_to_name(ctx, info[i].domid); shutdown_reason = info[i].shutdown ? info[i].shutdown_reason : 0; printf("%-40s %5d %5lu %5d %c%c%c%c%c%c %8.1f", -- 2.30.2